<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
<html>
	 <head>
	      <title>Tien Home</title>
	      <jsp:include page="pages/common/all-js-css.jsp"></jsp:include>
    </head>
<body>

<div id="menu_horizon" class="menu menu_horizon">
	<ul id="header_Menu_tree" class="jd_menu tree" ></ul>
</div>
<!-- 
<div style="height:10px;;color:blue;padding:3px 0 0 0;">
		<div id="menu_navigation_value" style="float:left;padding:2px 2px 2px 5px;font-size:11px;color:red;">Home</div>
		<img id="loading_content" style="margin-left:20px;" alt="loading" src="${ctx}/images/loading-tiao-blue.gif">
</div>
 -->
<script type="text/javascript">
<!--
/**
var data_list_menu = eval($('#menu_list').text());
var ul = $("<ul class='jd_menu'></ul>");
buildUL(ul, builddata(data_list_menu));	
$(".menu_horizon").append(ul);
*/
var settingsForHeader = {
		isSimpleData : true,              //数据是否采用简单 Array 格式，默认false  
	    treeNodeKey : "id",               //在isSimpleData格式下，当前节点id属性  
	    treeNodeParentKey : "pId"        //在isSimpleData格式下，当前节点的父节点id属性  
	   // showLine : true                  //是否显示节点间的连线  
	   // checkable : true                  //每个节点上是否显示 CheckBox
};
$.ajax({type : 'POST',dataType : "html",url : '${ctx}/goal/menu.action',
	error : function() {alert('请求失败');},
	success : function(data) { 
		var treeNodes = eval(data); 
		var $portletTree = $("#header_Menu_tree");
		var zTree = $portletTree.zTree(settingsForHeader, treeNodes);
		//$('ul.jd_menu').jdMenu();
	}
});

//-->
</script>


</body>
</html>